package net.yunzhanyi.client.service.impl;

import net.yunzhanyi.client.service.PerfectService;
import net.yunzhanyi.client.utils.AuthUtils;
import net.yunzhanyi.generic.domain.model.Perfect;
import net.yunzhanyi.generic.mapper.PerfectMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author bestct
 * @date 2022/10/3
 * @type 类
 */
@Service
public class PerfectServiceImpl implements PerfectService {
    @Autowired
    private PerfectMapper perfectMapper;

    @Override
    public void createPerfect(Perfect perfect) {
        long uid = AuthUtils.getUid();
        perfect.setUid(uid);
        perfect.setCreateTime(System.currentTimeMillis());
        perfectMapper.insertSelective(perfect);
    }
}
